
package kgmyh.fileupload.controller;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

public class DownloadController extends AbstractController {

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String fileName = request.getParameter("fileName");
		String newFilename=request.getParameter("newFilename");
		HashMap map = new HashMap();
		map.put("fileName", fileName);
		map.put("newFilename", newFilename);
		return new ModelAndView("downloadView", map);
	}

}
